<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>楼盘信息发布</title>
<link href="css/lib.css" rel="stylesheet" type="text/css" />


</head>

<body>
<table width="573" height="121" border="0" align="center">
  <tr>
    <td colspan="2"><img src="img/xian2.jpg" width="900"  /></td>
  </tr>
  <tr>
    <td width="168" valign="top" bgcolor="#FFFFCC"><ul>
      <li><a href="#">楼盘信息发布</a></li>
      <li><a href="#">楼盘信息审核</a></li>
      <li><a href="#">信息显示</a></li>
      <li><a href="#">信息发布</a></li>
      <li><a href="#">会员注册</a></li>
      <li><a href="#">会员审核</a></li>
      <li><a href="addLease.html">房产出租</a></li>
      <li><a href="FIndAllServlet">房产出租信息管理</a></li>
      <li><a href="#">在线咨询</a></li>
      <li><a href="#">问题解答</a></li>
    </ul>
    <p>&nbsp;</p></td>
    <td width="728" valign="top"><p class="title">房产出租信息发布</p>
      <FORM id="form" name="form" method="post" action="AddLeaseServlet">
      <table width="200" border="1" class="tableEdit">
        <tbody>
          <tr>
            <td width="34%">出租信息ID</td>
            <td width="66%"><label> 
                  <input id="txtId" name="txtId" />
              </label>
              *</td>
          </tr>
          <tr>
            <td>姓名</td>
            <td> 
                <input id="txtName" name="txtName" />
              *</td>
          </tr>
          <tr>
            <td>电话</td>
            <td> 
                <input id="txtPhone" name="txtPhone" />            </td>
          </tr>
          <tr>
            <td>描述</td>
            <td>&nbsp;&nbsp;<textarea id="txtDescription" name="txtDescription" rows="5" cols="40"></textarea>            </td>
          </tr>
          <tr>
            <td>价格</td>
            <td>&nbsp;<input id="txtPrice" name="txtPrice" />            </td>
          </tr>
          <tr>
           <td colspan="2" align="left"><label> 
                  <input id="Button1" 
				  onclick="checkInput()" 
				
				  value="提交" type="button" name="Button1" />
            </label></td>
            
          </tr>
        </tbody>
      </table>
      <p> </p>
 
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    </form>
    </td>
  </tr>
</table>
<script type="text/javascript">

//必填校验
function checkInput(){
	var txtId = document.getElementById("txtId").value;
	if(txtId == ""){
		
		alert("id不能为空");
		document.getElementById("txtId").focus;
		return;
	}
	var txtName = document.getElementById("txtName").value;
	if(txtName == ""){
		alert("姓名不能为空");
		document.getElementById("txtName").focus;
		return;
	}	
	document.getElementById("form").submit();
}
</script>


</body>
</html>
